import tabBar from '@/utils/tabbar.js'  //引入tabbar文件。

//let role = uni.getStorageSync('role')//把登录后的

const tabBars = {
	state: {
		role:'user',
		tabBarList: [],
		isCreateBool:false
	},
	mutations: {
		setIsCreateBool(state,bool){
			state.isCreateBool = bool;
		},
		setRole(state,role){
			state.role = role;
			//先得到权限，再根据权限设置tabbarList
			
			console.log(tabBar[role])
			state.tabBarList = tabBar[role];
		}
	},
}

export default tabBars
